package subject2;

public class Node
{
    private int nodeID;

    public Node()
    {
        this(0);
    }
    public Node(String  nodeID)
    {
        this(Integer.parseInt(nodeID));
    }
    public Node(int nodeID)
    {
        this.nodeID=nodeID;
    }


    public int getNodeID()
    {
        return this.nodeID;
    }

    public void setNodeID(int nodeID)
    {
        this.nodeID=nodeID;
    }

    public String toString()
    {
        return ""+nodeID;
    }
}
